/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.mapper;

import com.koron.scene.domain.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DangerousOperationRelationMapper {
    Integer batchInsertSafe(@Param("safetyMeasureList") List<SafetyMeasure> safetyMeasureList);

    Integer batchInsertType(@Param("operationTypeList") List<OperationType> operationTypeList);

    Integer batchInsertPersonal(@Param("personalProtectionAndEmergencyList") List<PersonalProtectionAndEmergency> personalProtectionAndEmergencyList);

    Integer batchInsertGas(@Param("gasDetectionList") List<GasDetection> gasDetectionList);

    Integer batchInsertRisk(@Param("riskIdentificationAndMeasuresList") List<RiskIdentificationAndMeasures> riskIdentificationAndMeasuresList);

    Integer deleteSafeByDangerousOperationId(@Param("dangerousOperationId") String dangerousOperationId);

    Integer deleteGasByDangerousOperationId(@Param("dangerousOperationId") String dangerousOperationId);

    Integer deleteRiskByDangerousOperationId(@Param("dangerousOperationId") String dangerousOperationId);

    Integer deleteTypeByDangerousOperationId(@Param("dangerousOperationId") String dangerousOperationId);

    Integer deletePersonByDangerousOperationId(@Param("dangerousOperationId") String dangerousOperationId);

    List<SafetyMeasure> getSafetyByDangerousId(@Param("dangerousOperationId") String dangerousOperationId);

    List<GasDetection> getGasByDangerousId(@Param("dangerousOperationId") String dangerousOperationId);
    
    List<RiskIdentificationAndMeasures> getRiskByDangerousId(@Param("dangerousOperationId") String dangerousOperationId);

    List<OperationType> getTypeByDangerousId(@Param("dangerousOperationId") String dangerousOperationId);

    List<PersonalProtectionAndEmergency> getPersonByDangerousId(@Param("dangerousOperationId") String dangerousOperationId);

    Integer batchInsertBlindPlate(@Param("blindPlateList") List<BlindPlate> blindPlateList);

    Integer batchInsertHotWork(@Param("hotWorkList") List<HotWork> hotWorkList);

    Integer deleteBlindPlateByDangerousOperationId(@Param("dangerousOperationId") String dangerousOperationId);

    Integer deleteHotWorkByDangerousOperationId(@Param("dangerousOperationId") String dangerousOperationId);

    List<HotWork> getHotWorkByDangerousId(@Param("dangerousOperationId") String dangerousOperationId);

    List<BlindPlate> getBlindPlateByDangerousId(@Param("dangerousOperationId") String dangerousOperationId);
}
